import JsonData from "../../Json.js";
let { sixth } = JsonData.gallery;
Component({
    properties: {
        currentIndex: {
            type: String,
            value: "",
            observer: function(index) {
              if(index==5){
                this.app = getApp();
                this.app.show(this, "show0", 1, 2000);
                this.app.show(this, "show1", 1, 5000);
                this.app.show(this, "show2", 1, 6000);
              }        
            }
        }
    },
    data: {
      sixth: sixth
    },
    methods: {
        toMap: function() {
            wx.getLocation({
                type: "wgs84",
                success: function(res) {
                  // const latitude = res.latitude
                  // const longitude = res.longitude
                    wx.openLocation({
                        latitude: 22.811348,
                        longitude: 113.687455,
                        name: "龙泉国际大酒店",
                        address: "广东省东莞市连升路金洲段(长德路与连升路交汇口)"
                    });
                }
            });
        }
    }
});